// src/stores/awardedDrinkStore.js
import { defineStore } from 'pinia'

export const useAwardedDrinkStore = defineStore('awardedDrink', {
  state: () => ({
    awardedDrinks: []
  }),
  actions: {
    async fetchAwardedDrinks() {
      // 模拟 API 请求
      const res = await fetch('/api/awarded-drinks')
      this.awardedDrinks = await res.json()
    }
  }
})